package com.example.jpa.entity;

import lombok.Data;
import lombok.experimental.FieldNameConstants;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author  qilongxin
 * @date 2021/08/25 22:59 
 */

@DynamicInsert
@DynamicUpdate
@Data
@FieldNameConstants
@Entity
@Table (name = "clazz_inf")
public class ClazzInf implements Serializable {

	private static final long serialVersionUID =  2457686850673528705L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "clazz_code")
	private Long clazzCode;

   	@Column(name = "clazz_name")
	private String clazzName;

}
